feat(structures): add AuditLog structure#11402
feat(structures): add AuditLog structure#11402keston-dev wants to merge 5 commits intodiscordjs:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
📝 WalkthroughWalkthroughIntroduces a new audit log module containing three TypeScript classes—AuditLog, AuditLogEntry, and AuditLogOptions—that wrap Discord API audit log types. Classes extend a generic Structure base, provide typed constructors, and expose public property getters for accessing underlying API data with minimal transformation (e.g., timestamp conversion). Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used🧬 Code graph analysis (1)packages/structures/src/auditlog/AuditLogEntry.ts (3)
🔇 Additional comments (5)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #11402 +/- ##
==========================================
- Coverage 32.07% 31.97% -0.11%
==========================================
Files 375 378 +3
Lines 13720 13763 +43
Branches 1078 1080 +2
==========================================
Hits 4401 4401
- Misses 9184 9227 +43
Partials 135 135
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| * Represents an audit log entry on Discord. | ||
| * | ||
| * @typeParam Omitted - Specify the properties that will not be stored in the raw data field as a union, implement via `DataTemplate` | ||
| * @remarks Intentionally does not export `changes` so that extending classes can resolve array to `AuditLogChange[]` |
There was a problem hiding this comment.
AuditLogChange should be a substructure too and is missing completely
…eat/audit-log-structure
This PR will add the
AuditLogstructure and subsequent substructures.This current commit has the
AuditLogEntryandAuditLogOptionssubstructures.Mentioning #10981 for visibility.